package com.zztl.infiniteBand.ui.activity

import android.content.Intent
import android.view.View
import butterknife.OnClick
import com.zztl.infiniteBand.R
import com.zztl.infiniteBand.base.BaseActivity
import com.zztl.infiniteBand.storage.Constans

class LinkLeadActivity : BaseActivity() {

    override fun setLayoutId(): Int = R.layout.activity_link_lead


    override fun initBase() {

    }

    @OnClick(R.id.btn_nolink, R.id.btn_next_step)
    fun click(view: View) {
        when (view.id) {
            R.id.btn_nolink -> finish()
            R.id.btn_next_step -> {
                val intent = Intent(this, LinkActivity::class.java)
                intent.putExtra(Constans.CHOOSE_LINK_TYPE, getIntent().getIntExtra(Constans.CHOOSE_LINK_TYPE, 0))
                skipActivity(intent)
            }
        }
    }
}
